//
//  KFDPreferentialActivity.m
//  KFD
//
//  Created by JIRENTIANXIANG on 6/30/15.
//  Copyright © 2015 kfd. All rights reserved.
//

#import "KFDPreferentialActivity.h"

@implementation KFDPreferentialActivity

-(instancetype)initWithDictionary:(NSDictionary *)dictionary
{
    if (self=[super initWithDictionary:dictionary]) {
        NSString* starttimerStr=dictionary[@"starttime"];
        self.starttime=[NSDate dateWithTimeIntervalSince1970:starttimerStr.integerValue];
        NSString* endtimeStr=dictionary[@"endtime"];
        self.endtime=[NSDate dateWithTimeIntervalSince1970:endtimeStr.integerValue];
        NSString* isjoinStr=dictionary[@"isjoin"];
        self.isjoin=[isjoinStr isEqualToString:@"1"]?YES:NO;
    }
    return self;
}

@end
